package com.example.aspectj.aspect;

import android.Manifest;
import android.util.Log;

import com.example.aspectj.trace.PermissionTrace;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;

@Aspect
public class TestJ {
    private static final String POINT_TEST = "execution(@com.example.aspectj.trace.TestTrace * * (..))";

    //execution(* BaseActivity.on**(..))
    @AfterReturning(pointcut = POINT_TEST, returning = "result")
    public void afterReturn(JoinPoint joinPoint, Object result) {
        Log.i("moon", "methodCallAnnotated -------- afterReturn " + result.toString());
    }
}
